package com.probox.common.entity.domain.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户资金对象 customer_fund_store
 *
 * @author usoft
 * @date 2022-10-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("customer_fund_store")
public class CustomerFundStore implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    //默认主键自增
    @TableId(value = "FUND_UID", type = IdType.AUTO)
    private Long fundUid;

    @TableField(exist = false)
    @Excel(name = "门店", width = 50)
    private String storeName;

    @TableField(exist = false)
    @Excel(name = "会员名称", width = 50)
    private String customerName;

    @TableField(exist = false)
    @Excel(name = "手机号码", width = 50)
    private String phone;

    /**
     * 会员ID
     */
    //@Excel(name = "会员ID")
    private Long customerUid;

    /**
     * 门店ID
     */
    //@Excel(name = "门店ID")
    private Long storeId;

    /**
     * 总菠萝金币，只增不减
     */
    //@Excel(name = "总菠萝金币，只增不减")
    private Long allBalance;

    /**
     * 可用菠萝金币,可增、可减，可以用来支付，不能提现，数据来源于充值
     */
    @Excel(name = "金币")
    private Long balance;

    /**
     * 总的菠萝银币，只增不减
     */
    //@Excel(name = "总的菠萝银币，只增不减")
    private Long allRedBag;

    /**
     * 可用菠萝银币,可增、可减
     */
    @Excel(name = "银币")
    private Long redBag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;



}
